package com.example.bbs.model;

import java.util.Date;

/**
 * @auther: zhangxin
 * @Description:
 */
public class Reply {

    private int replyId;
    private int postId;
    private int userId;
    private String content;
    private User author;
    private Date replyTime;

    public int getReplyId() {
        return replyId;
    }

    public void setReplyId(int replyId) {
        this.replyId = replyId;
    }

    public int getPostId() {
        return postId;
    }

    public void setPostId(int postId) {
        this.postId = postId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    public User getAuthor() {
        return author;
    }

    public void setAuthor(User author) {
        this.author = author;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Reply() {
    }

    public Reply(int postId, String content, Date replyTime) {
        this.postId = postId;
        this.content = content;
        this.replyTime = replyTime;
    }

    public Reply(int replyId, String content, int postId,Date replyTime) {
        this.replyId = replyId;
        this.postId = postId;
        this.content = content;
        this.replyTime = replyTime;
    }

    public Reply(int postId, String content) {
        this.postId = postId;
        this.content = content;
    }

    public Reply(int postId, int userId, String content) {
        this.postId = postId;
        this.userId = userId;
        this.content = content;
    }

    public Reply(int replyId, int postId, int userId, String content, Date replyTime) {
        this.replyId = replyId;
        this.postId = postId;
        this.userId = userId;
        this.content = content;
        this.replyTime = replyTime;
    }

    @Override
    public String toString() {
        return "Reply{" +
                "replyId=" + replyId +
                ", postId=" + postId +
                ", userId=" + userId +
                ", content='" + content + '\'' +
                ", replyTime=" + replyTime +
                '}';
    }
}
